<script setup lang="ts">
import { ref } from 'vue'
const id = ref('100')
definePageMeta({
    validate: async (route) => {
        if (typeof route.params.id === 'string') {
            return true
        }
        return false
    }
})
</script>
<template>
    <section>
        <p>The user id is {{id}}</p>
    </section>
</template>